package com.netease.nie.service;

import java.util.List;

import com.netease.nie.dto.AddressDto;
import com.netease.nie.dto.AdminProvinceDto;
import com.netease.nie.dto.ChooseAddrDto;

public interface AddressService {
	List<AddressDto> listAddressByUserId(long userId);
	
	AddressDto listAddressById(long id, long userId);
	
	AddressDto queryAddressById(long id, long userId);
	
	int saveAddress(AddressDto addressDto, long userId);

	AddressDto queryDefaultAddressByUserId(long userId);
	
	AddressDto listDefaultAddressByUserId(long userId);

	int deleteAddressById(Long id, Long userId);

	AdminProvinceDto queryAdminProvinceDtos(ChooseAddrDto chooseAddrDto);
	
	void replaceChooseAddress(AddressDto addressDto);
}
